<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>标签管理</title>
   
    <style type="text/css">
        /*修改按钮*/
       .table2 tr td{
            height: 35px;
        }
        input[type="text"]{
            background-color: #FFFFFF;
            border: 2px solid #DDDDDD;
            border-radius: 0;
            box-shadow: 2px 2px 2px #F0F0F0 inset !important;
            color: #555555;
            display: inline-block;
            font-size: 12px;
            line-height: 30px;
            margin: 0;
            padding: 0 6px;
            vertical-align: middle;
            height: 30px;
        }
        input[type="text"]:focus{
            background: none repeat scroll 0 0 #FFFBDE;
            border: 2px solid #51B4FF;
            box-shadow: none !important;
            outline: 1px solid #51B4FF;
        }
    </style>
    
    <link rel="stylesheet" type="text/css" href="http://localhost/NEWCLASS_515151/nubiya/hdphp/Static/hdjs/hdjs.css"/>
    <script src="http://localhost/NEWCLASS_515151/nubiya/hdphp/Static/js/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="http://localhost/NEWCLASS_515151/nubiya/hdphp/Static/hdjs/hdjs.min.js" type="text/javascript" charset="utf-8"></script>

    <script type="text/javascript" src="./js/js.js"></script>
</head>
<body>
<div class="wrap">
    <table class="hd-table hd-table-list">
        <thead>
        <tr>
            <td width="30">id</td>
            <td>类型名</td>
            <td width="200">操作</td>
        </tr>
        </thead>
    <tbody>
        <?php foreach ($data as $k=>$v){?>
            <tr>
                <td width="30"><?php echo $v['id'];?></td>
                <td><?php echo $v['typename'];?></td>
                <td width="200">
                	<a href="<?php echo U('Admin/Type/addproperty',array('id'=>$v['id']));?>" class="hd-btn hd-btn-primary hd-btn-sm">添加类型属性</a>
                    <a href="<?php echo U('Admin/Type/edit',array('id'=>$v['id']));?>" class="hd-btn hd-btn-primary hd-btn-sm">修改</a>
                    <a href="javascript:;" class="hd-btn hd-btn-danger hd-btn-sm" onclick="del(<?php echo $v['id'];?>)">删除</a>
                </td>
            </tr>
        <?php }?>
        </tbody>
        <script type="text/javascript">
        function del(id){
             if(confirm("确认删除么")){
                location.href="<?php echo U('Admin/Type/del');?>?id="+id;
             }
        }
        </script>
    </table>
    <div class="page_hdjob">
        
    </div>
</div>

</body>
</html>


